package org.foj.dto {

[RemoteClass(alias="org.appfuse.model.User")]
public class User {

  public var id:int;
  public var username:String;
  public var firstName:String;
  public var lastName:String;

  public function User(user:* = null) {
    if (user != null) {
      this.id = user.id;
      this.firstName = user.firstName;
      this.lastName = user.lastName;
    }
  }

  public function get fullName():String {
    return firstName + " " + lastName;
  }
}
}